package FrameDemo.Adapter;
/*

适配器设计模式：
    解决接口与接口实现类之间的矛盾问题
 */

public class AdapterTest2 {
    public static void main(String[] args) {

    }

}

interface He{
    void da();
    void nian();
    void qiao();
    void xi();
}

//适配器类
abstract class HeAdapter implements He{

    @Override
    public void da() {

    }

    @Override
    public void nian() {

    }

    @Override
    public void qiao() {

    }

    @Override
    public void xi() {

    }
}

class LuZhiShen extends HeAdapter{
    @Override
    public void xi(){
        System.out.println("拳打镇关西");
        System.out.println("大闹野猪林");
        System.out.println("倒拔垂杨柳");
    }
}
